package kr.co.doriclassic.pro11;

public class Graduate extends Student {
	private int typeTA;
	private double janghak;
	private String ta;
	public Graduate(String name, String id, String major, int grade, int unit,
			int typeTA, double janghak) {
		super(name, id, major, grade, unit);
		if(typeTA==1){
			ta="교육조교";
		}
		else if(typeTA==2) {
			ta="연구조교";
		}
		else {
			ta="해당사항 없음";
		}
		if(janghak>1){
			System.out.println("장학금 미반영");
		}
		else {
			this.janghak=janghak;
		}
	}
	@Override
	public String toString() {
		return "대학원생 [조교타입=" + ta + ", 장학비율=" + janghak
				+ ", 이름=" + name + ", 학번=" + id + ", 전공=" + major
				+ ", 학년=" + grade + ", 이수학점=" + unit + "]";
	}	
	
}